<?php
    #-------------------------------------------------------------#
	# This file is part of the Kumomado - Virtual Window Platform #
	# for PHP. (c) 2009 Tsai, Min Che <tirme0812@gmail.com>       #
	# Please visit http://www.kumomado.org/ for more information. #
	#                                                             #
	# This software is licensed under the GNU License v3. Please  #
	# view the LICENSE file for the full text of this license.    #
    #-------------------------------------------------------------#

	/**
	 * @package resource
	 * @subpackage controller
	 * @author Tsai, Min Che
	 */
	class KumomadoResourceConfigurationController extends KumomadoAbstractResourceController {
		public function internal($params) {
			return $this->model->getConfig(realpath($params['path']), $params['source']);
		}
		public function external($params) {
			$lang = $this->model->getConfig(realpath($params['path']), $params['source']);
			$this->view->response('Configuration', $lang);
			$this->view->result($params['data_type']);
		}
	}
?>